package com.hanfusion.api;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hankChan
 *         2018/5/4 0004.
 */
@RestController
public class DemoAPIs {

    @RequestMapping(value = "/",
            method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public String hello() {
//        try {
//            Thread.sleep(10);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        return "{'msg':'Hello Spring Boot'}";
    }
}
